package org.myspringframework.springbootmybatisplus001.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author fzy
 * @version 1.0
 * 创建时间：2024-09-27 14:39
 */

@Getter
@AllArgsConstructor
public enum Gender {
    MAN(1, "男"),
    WOMAN(2, "女");

    @EnumValue
    //@JsonValue
    int value;
    String genderName;

    @Override
    public String toString(){
        return String.valueOf(value);
    }
}
